﻿using System;
using System.Collections.ObjectModel;
using MyOS.Models;

namespace MyOS.ViewModel
{
    [Serializable]
    public class FileViewModel
    {
        public FileTreeViewItemModel DiskCModel =
            new FileTreeViewItemModel("本地磁盘C", 'r', "pack://application:,,,/Resources/icon_disk.png");

        public FileTreeViewItemModel DiskDModel =
            new FileTreeViewItemModel("本地磁盘D", 'r', "pack://application:,,,/Resources/icon_disk.png");


        public FileViewModel()
        {
            MenuItems = new ObservableCollection<FileTreeViewItemModel>
            {
                new FileTreeViewItemModel("此电脑", 'r', "\uf17a")
                {
                    MenuItems = new ObservableCollection<FileTreeViewItemModel>
                    {
                        DiskCModel, DiskDModel
                    }
                }
            };
        }

        public ObservableCollection<FileTreeViewItemModel> MenuItems { get; } =
            new ObservableCollection<FileTreeViewItemModel>();


        #region Event

        #endregion
    }
}